OPC Studio User's Guide and Reference
SecurityKeysInfo Constructor(String,Int64,Byte[],Double,Double)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security.KeyManagement Namespace > SecurityKeysInfo Class > SecurityKeysInfo Constructor : SecurityKeysInfo Constructor(String,Int64,Byte[],Double,Double)
The URI string for the set of algorithms and key lengths used to secure the messages.

The value of this parameter cannot be null (Nothing in Visual Basic).

The security token Id of the first key in the array of keys.
An array of keys, ordered by the sequence in which they are used.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

The time before the current key is expected to expire. In milliseconds.
The lifetime of a key. In milliseconds.
Initializes a new instance of the class, specifying all its properties.
Syntax
'Declaration
 
Public Function New( _
   ByVal securityPolicyUriString As String, _
   ByVal firstTokenId As Long, _
   ByVal keys() As Byte, _
   ByVal timeToNextKey As Double, _
   ByVal keyLifetime As Double _
)
'Usage
 
Dim securityPolicyUriString As String
Dim firstTokenId As Long
Dim keys() As Byte
Dim timeToNextKey As Double
Dim keyLifetime As Double
 
Dim instance As New SecurityKeysInfo(securityPolicyUriString, firstTokenId, keys, timeToNextKey, keyLifetime)

Parameters

securityPolicyUriString
The URI string for the set of algorithms and key lengths used to secure the messages.

The value of this parameter cannot be null (Nothing in Visual Basic).

firstTokenId
The security token Id of the first key in the array of keys.
keys
An array of keys, ordered by the sequence in which they are used.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

timeToNextKey
The time before the current key is expected to expire. In milliseconds.
keyLifetime
The lifetime of a key. In milliseconds.
Exceptions
ExceptionDescription

The value of an argument is outside the allowable range of values as defined by the invoked method.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also